namespace ETestIT.Web.Controllers.Extensions
{
    using System.Web.Mvc;
    using Core;

    public class ResumeActionResult : ActionResult
    {
        private readonly Resume resume;

        public ResumeActionResult(Resume resume)
        {
            this.resume = resume;
        }

        public override void ExecuteResult(ControllerContext context)
        {
            context.WriteResumeToResponse(resume);
        }
    }
}